<template>
  <div class="container">
    <header-nav></header-nav>
    <div class="content mindWidth">
      <div class="patent-info-content">
        <div class="title">
          <span>著录项目信息</span>
        </div>
        <div class="project-info flex flex-wrap items-middle">
          <div class="item">
            <span>专利号：</span>
            {{ detailInfo.applicationNumber }}
          </div>
          <div class="item">
            <span>专利名称：</span>
            {{ detailInfo.patentName }}
          </div>
          <div class="item">
            <span>申请日：</span>
            {{ detailInfo.applicationTime }}
          </div>
          <div class="item">
            <span>主分类号：</span>
            {{ detailInfo.patentName }}
          </div>
          <div class="item">
            <span>案件状态</span>
            {{ detailInfo.patentName }}
          </div>
          <div class="item">
            <span>分案提交日：</span>
            {{ detailInfo.patentName }}
          </div>
          <div class="item">
            <span>申请人：</span>
            {{ detailInfo.patentName }}
          </div>
          <div class="item">
            <span>发明人：</span>
            {{ detailInfo.patentName }}
          </div>
          <div class="item">
            <span>代理机构：</span>
            {{ detailInfo.patentName }}
          </div>
          <div class="item">
            <span>第一代理人：</span>
            {{ detailInfo.patentName }}
          </div>
        </div>
        <div class="title">
          <span>应缴费信息</span>
        </div>
        <div>
          <el-table :data="detailInfo.calculateList" borderstyle="width: 100%">
            <el-table-column prop="payYears" min-width="150px" label="费用种类">
              <template slot-scope="{row}">
                <span>发明专利第{{row.payYears}}年年费</span>
              </template>
            </el-table-column>
            <el-table-column prop="shouldPaymentAmount" label="应缴金额（元）" />
            <el-table-column prop="payCloseTime" label="缴费截止日" />
            <el-table-column label="费用状态">
              <template>
                <span>未缴费</span>
              </template>
            </el-table-column>
            <el-table-column label="操作">
              <template slot-scope="{row}">
                <el-button size="small" type="primary">缴费</el-button>
              </template>
            </el-table-column>
          </el-table>
        </div>
        <!-- <div class="title">
                    <span>已缴费信息</span>
                </div>
                <div>
                    <el-table :data="detailInfo.calculateList" borderstyle="width: 100%">
                        <el-table-column prop="payYears" min-width="150px" label="费用种类" />
                        <el-table-column prop="shouldPaymentAmount" label="缴费金额（元）" />
                        <el-table-column prop="serviceCharge" label="缴费日期" />
                        <el-table-column prop="lumpSum" label="缴费人姓名" />
                        <el-table-column prop="payCloseTime" label="收据号" />
                    </el-table>
        </div>-->
      </div>
    </div>
    <navigation></navigation>
    <footer-nav></footer-nav>
  </div>
</template>
<script>
import {
  getCompanyPatentPaymentList,
  getCompanyPatentPayInfo,
  getCompanyPatentPayment
} from "../../api/api.js";
export default {
  data() {
    return {
      detailInfo: {},
      id: this.$route.query.id
    };
  },
  mounted() {
    this.getPatentInfo();
  },
  methods: {
    getPatentInfo() {
      getCompanyPatentPayment({ applicationNumber: this.id }).then(res => {
        this.detailInfo = res;
      });
    }
  }
};
</script>
<style lang="less" scoped>
.container {
  .content {
    background: #fff;
    box-sizing: border-box;
    padding: 20px 30px;
    box-shadow: 0 0 10px #ccc;
    margin: 40px auto;
    min-height: 550px;
    .patent-info-content {
      padding: 30px;
      box-sizing: border-box;
      .title {
        padding: 15px 0;
        box-sizing: border-box;
        border-bottom: 1px solid #ccc;
        span {
          padding-left: 8px;
          border-left: 5px solid sandybrown;
          font-size: 18px;
          color: #666666;
        }
      }
      .project-info {
        .item {
          width: 50%;
          height: 46px;
          line-height: 46px;
          span {
            display: inline-block;
            width: 120px;
            text-align: right;
          }
        }
      }
    }
  }
}
</style>